package bean;

import dao.IDIF;

public class AnnouncementBean implements IDIF {

	private String Id;
	private String blogId;
	private String ownerId;
	
	public AnnouncementBean(String id, String blogId, String ownerId){
		this.Id = id;
		this.blogId = blogId;
		this.ownerId = ownerId;
	}
	
	public AnnouncementBean(){}

	/**
	 * @return the id
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.Id = id;
	}

	/**
	 * @return the blogId
	 */
	public String getBlogId() {
		return blogId;
	}

	/**
	 * @param blogId the blogId to set
	 */
	public void setBlogId(String blogId) {
		this.blogId = blogId;
	}
	
	/**
	 * @return the ownerId
	 */
	public String getOwnerId() {
		return ownerId;
	}

	/**
	 * @param ownerId the ownerId to set
	 */
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null || !(obj instanceof AnnouncementBean) )
			return false;
		AnnouncementBean anotherAnnouncementBean = (AnnouncementBean) obj;
		
		if (this.getId().equals(anotherAnnouncementBean.getId()))
			return true;
		
		return false;
	}
	
	
	
	
}
